package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.ChannelGroupJurisdictionAddDTO;
import org.jsola.hr.dto.ChannelGroupJurisdictionUpdateDTO;
import org.jsola.hr.query.ChannelGroupJurisdictionQuery;
import org.jsola.hr.vo.ChannelGroupJurisdictionListVO;
import org.jsola.hr.vo.ChannelGroupJurisdictionVO;

import java.util.List;

/**
 * 渠道分组权限表
 *
 * @author zhr
 */
@Api(tags = "hr-渠道分组权限表")
public interface IChannelGroupJurisdictionControllerAPI {

    /**
     * 批量新增渠道分组权限表
     * @param channelGroupJurisdictionAddDTO 渠道分组权限表新增实体
     * @return 1
     */
    @ApiOperation(value = "批量新增渠道分组权限表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionAddDTO", dataType = "ChannelGroupJurisdictionAddDTO", value = "新增渠道分组权限表", paramType = "body")
    })
    Result<Integer> batchSave(ChannelGroupJurisdictionAddDTO channelGroupJurisdictionAddDTO);

    /**
     * 新增渠道分组权限表
     * @param channelGroupJurisdictionAddDTO 渠道分组权限表新增实体
     * @return 渠道分组权限表展示对象
     */
    @ApiOperation(value = "新增渠道分组权限表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionAddDTO", dataType = "ChannelGroupJurisdictionAddDTO", value = "新增渠道分组权限表", paramType = "body")
    })
    Result<ChannelGroupJurisdictionVO> save(ChannelGroupJurisdictionAddDTO channelGroupJurisdictionAddDTO);


    /**
     * 修改渠道分组权限表
     * @param channelGroupJurisdictionUpdateDTO 渠道分组权限表
     * @return 更新数量
     */
    @ApiOperation(value = "修改渠道分组权限表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionUpdateDTO", dataType = "ChannelGroupJurisdictionUpdateDTO", value = "修改渠道分组权限表", paramType = "body")
    })
    Result<Integer> update(ChannelGroupJurisdictionUpdateDTO channelGroupJurisdictionUpdateDTO);




    /**
     * 删除单个渠道分组权限表，彻底删除
     * @param channelGroupJurisdictionId 渠道分组权限表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个渠道分组权限表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionId", dataType = "String", value = "渠道分组权限表id", paramType = "path")
    })
    Result<Integer> delete(String channelGroupJurisdictionId);


    /**
     * 批量删除渠道分组权限表，彻底删除
     * @param channelGroupJurisdictionIds 渠道分组权限表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除渠道分组权限表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionIds", dataType = "String[]", value = "渠道分组权限表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] channelGroupJurisdictionIds);


    /**
     * 根据渠道分组权限表id查询渠道分组权限表详情
     * @param channelGroupJurisdictionId 渠道分组权限表id
     * @return 渠道分组权限表详情
     */
    @ApiOperation(value="根据渠道分组权限表id查询渠道分组权限表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionId", dataType = "String", value = "渠道分组权限表id", paramType = "path")
    })
    Result<ChannelGroupJurisdictionVO> findById(String channelGroupJurisdictionId);


    /**
     * 查询渠道分组权限表
     * @param channelGroupJurisdictionQuery 渠道分组权限表查询参数
     * @return page
     */
    @ApiOperation(value="查询渠道分组权限表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionQuery", dataType = "ChannelGroupJurisdictionQuery", value = "渠道分组权限表查询参数", paramType = "query")
    })
    Result<List<ChannelGroupJurisdictionListVO>> listAll(ChannelGroupJurisdictionQuery channelGroupJurisdictionQuery);


     /**
     * 分页查询渠道分组权限表
     * @param channelGroupJurisdictionQuery 渠道分组权限表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询渠道分组权限表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "channelGroupJurisdictionQuery", dataType = "ChannelGroupJurisdictionQuery", value = "渠道分组权限表查询参数", paramType = "query")
    })
    Result<Page<ChannelGroupJurisdictionListVO>> page(ChannelGroupJurisdictionQuery channelGroupJurisdictionQuery);


}

